dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
38edb8a
)
Add __toString method to LinkTarget interface
author
addshore
<addshorewiki@gmail.com>
Sat, 18 Nov 2017 17:34:10 +0000
(17:34 +0000)
committer
Addshore
<addshorewiki@gmail.com>
Sat, 18 Nov 2017 20:23:21 +0000
(20:23 +0000)
Change-Id: I4f12e3175a308f88e240db01cd4e91e78b283057
includes/linker/LinkTarget.php
patch
|
blob
|
history
diff --git
a/includes/linker/LinkTarget.php
b/includes/linker/LinkTarget.php
index
dbd97a7
..
980a8bf
100644
(file)
--- a/
includes/linker/LinkTarget.php
+++ b/
includes/linker/LinkTarget.php
@@
-103,4
+103,15
@@
interface LinkTarget {
* @return string
*/
public function getInterwiki();
+
+ /**
+ * Returns an informative human readable representation of the link target,
+ * for use in logging and debugging. There is no requirement for the return
+ * value to have any relationship with the input of TitleParser.
+ * @since 1.31
+ *
+ * @return string
+ */
+ public function __toString();
+
}